

// export const List_ADD = 'List_ADD'

import { List_ADD } from '../actionTypes'
const initState = [{
    "id": 100,
    "name": "毛衣",
    "price": 34
}]

export default function listReducer (state = initState, action) {
    console.log(action)
    switch (action.type) {
        case List_ADD:

            return [...state, ...action.payload]


        default:
            break;
    }


    return state
}


